# -*- coding: utf-8 -*-
"""
Module Description: 保存远端数据服务chaos的model
Date: 2016/12/29
Author:Bai Jin Ping
"""
from pyshare.framework.dal.orm import models
from character import *


# 所有的数据模型
all_models = []


def register_all_models():
    """将所有dbmodel注册到all_db_models"""
    for k, v in globals().iteritems():
        if type(v) == models.base.ModelBase \
                and issubclass(v, models.Model):
            all_models.append(v)


register_all_models()
